package com.dcd.service;

import com.dcd.pojo.Collection_information;

import java.util.List;

public interface Collection_informationService {

    /**
     * 根据用户登入id查询咨询收藏
     * @param user_id 用户登入id
     * @return
     */
    List<Collection_information> select_collection_informationList(int user_id);

    /**
     * 添加资讯收藏
     * @param collection_information 收藏表对象
     * @return
     */
    boolean add_collection_information(Collection_information collection_information);

    /**
     * 取消收藏
     * @param collection_information 收藏表对象
     * @return
     */
    boolean delete_collection_information(Collection_information collection_information);

    /**
     * 查询用户是否关注指定
     * @param collection_information
     * @return
     */
    boolean select_user_collection_infomation(Collection_information collection_information);
}
